<template>
  <div class="card">
    <div class="title">{{ title }}</div>
    <div class="content">
      <div class="item">
        <el-popover
        class="box-item"
        :title="title"
        :content="content+'图'"
        placement="top-start"
      >
        <template #reference>
          {{content}}图
        </template>
      </el-popover>

        </div>
    </div>
  </div>
</template>

<script setup>
import { defineProps } from 'vue'
const props = defineProps({
  title: {
    type: String,
    default: "标题",
  },
  content: {
    type: String,
    default: "内容",
  },
})

</script>

<style  scoped>
.card {
  width: 100%;
  height: 300px;
  padding: 10px;
  background-color: #2c3e50;
  color: #fff;
}
.card .content{
  height: 90%;
  margin: 10px 0;
  background-color: #33485b;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
</style>